package API.Collection.List.ArrayList.Basis;

import java.util.ArrayList;

public class BasicKnow {
    public static void main(String[] args) {
        ArrayList<String> al = new ArrayList<>();
        String st1 = "Abcd1234";
        String st2 = "123456";
        String st3 = "abcdefg";
        boolean addSuccess = al.add(st1);
        al.add(st2);
        al.add(st3);
        System.out.println(al);
        System.out.println(al.size());
        boolean rmSuccess = al.remove(st1);
        System.out.println(rmSuccess);
        System.out.println(al.remove(1));
        al.set(0, st2);
        System.out.println(al.get(0));
    }
}

